package com.fhzz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fhzz.mapper.RoleMapper;
import com.fhzz.mapper.UserMapper;
import com.fhzz.model.Permission;
import com.fhzz.model.Role;
import com.fhzz.model.User;
import com.fhzz.model.UserRole;
import com.fhzz.service.SystemService;


@Service
public class SystemServiceImpl implements SystemService{
	
	@Autowired
	private UserMapper userMapper;
	
	
	@Autowired
	private RoleMapper roleMapper;
	
	@Override
	public List<User> getAllUsers() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<User> getPageUsers(int pagenum, int pagesize) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public User getUserById(int id) {
		return userMapper.getUserById(id);
	}

	@Override
	public List<Role> getRoles() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteUser(int uid) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void addUser(User user, String[] rolenames) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void addUser(User user) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateUser(int uid, User user, String[] rolenames) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Role> getPageRoleInfo(int pagenum, int pagesize) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Role> getRoleInfo() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Permission> getPermisions() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<UserRole> listRolesByUserid(int userid) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void addRole(Role role, String[] permissionnames) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteRole(int rid) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Role getRoleById(int rid) {
		return roleMapper.getRoleById(rid);
	}

	@Override
	public void deleteRolePermission(int rid) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateRole(int rid, String[] permissionnames) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Permission> getPagePermisions(int pagenum, int pagesize) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void addPermission(String permissionname) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deletePermission(int pid) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public int getUidByUsername(String username) {
		return userMapper.getUidByUsername(username);
	}
	
}
